from fdfs_client.client import Fdfs_client

if __name__ == '__main__':

    client = Fdfs_client('client.conf')

    ret = client.upload_by_filename('/home/python/Desktop/2.jpg')


    print(ret)

'''
{'Group name': 'group1',
 'Remote file_id': 'group1/M00/00/02/wKgggF0DeNWAJOMaAAAmv27pX4k858.jpg',
  'Status': 'Upload successed.',
  'Local file name': '/home/python/Desktop/2.jpg',
   'Storage IP': '192.168.32.128',
   'Uploaded size': '9.00KB'}


'''
